package com.stlm2.dems.user.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.user.entity.Lower;
import com.stlm2.dems.user.dao.LowerDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("lowerDao")
public class LowerDaoImpl extends BaseDaoImpl<Lower> implements LowerDao {


    @Override
    public List<Lower> getByUserId(Integer userId) {
        return selectList("getByUserId",userId);
    }

    @Override
    public Lower getByLowerUserId(Integer lowerUserId) {
        return selectOne("getByLowerUserId",lowerUserId);
    }

    @Override
    public List<Lower> getOneLower(Integer userId) {
        return selectList("getOneLower",userId);
    }

    @Override
    public List<Lower> getTwoLower(Integer userId) {
        return selectList("getTwoLower",userId);
    }

    @Override
    public List<Lower> getThreeLower(Integer userId) {
        return selectList("getThreeLower",userId);
    }
}